﻿define('local/cache', [], function() {
	
	var cache = {
    	areaLevelData:null,
    	tradeLevelData:null,
    	controlLevelData:null,
    	polluteData:null,
    	processTechData:null,
    	yearData:null,
    	
    	getAreaLevelData : function() {
    		return cache.areaLevelData;
    	},
    	setAreaLevelData : function(data) {
    		cache.areaLevelData = data;
    	},
    	getTradeLevelData : function() {
    		return cache.tradeLevelData;
    	},
    	setTradeLevelData : function(data) {
    		cache.tradeLevelData = data;
    	},
    	getControlLevelData : function() {
    		return cache.controlLevelData;
    	},
    	setControlLevelData : function(data) {
    		cache.controlLevelData = data;
    	},
    	getPolluteData : function() {
    		return cache.polluteData;
    	},
    	setPolluteData : function(data) {
    		cache.polluteData = data;
    	},
    	getProcessTechData : function() {
    		return cache.processTechData;
    	},
    	setProcessTechData : function(data) {
    		cache.processTechData = data;
    	},
    	getYearData : function() {
    		return cache.yearData;
    	},
    	setYearData : function(data) {
    		cache.yearData = data;
    	}
    };
	
    return cache;
});
